﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Excell_On_Services.ViewModels.CartIndexViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Excell On Services: Your Cart
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="content" >
    <div class="content_bg" style='min-height: 500px;'>
        <div class="content_bg_bott">
            <h1>Select services :  </h1>
      
            <% using (Html.BeginForm("AddToCart", "Cart")){ %>
            <%--<%: Html.DropDownList("ddlServices", (SelectList)ViewData["Services"], "-- Select Services --") %>--%>
            <table cellpadding="5" class="table_login">
            <tr>
                <td>Select Service </td>
                <td><%: Html.DropDownList("ddlServices", ViewData["Services"] as IDictionary<string, IEnumerable<SelectListItem>>, "-- Select Service--", new { @class = "control_select" })%></td>
                <td></td>
            </tr>
                <tr>
                    <td>Quantily (employee)</td>
                    <td><%: Html.TextBox("txtQuanlity1", "", new { @class = "control_input", id = "txtQuanlity1" })%></td>
                    <td></td>

                </tr>   
                <tr>
                    <td>Start Date</td>
                    <td><%: Html.TextBox("txtStartDate1", "", new { @class = "control_input", id = "txtStartDate1", onclick = "displayDatePicker('txtStartDate1', this);" })%></td>
                    <td></td>
                </tr>   
                <tr>
                    <td>End Date</td>
                    <td><%: Html.TextBox("txtEndDate1", "", new { @class = "control_input", id = "txtEndDate1", onclick = "displayDatePicker('txtEndDate1', this);" })%></td>
                    <td></td>
                </tr>   
                <tr>
                    <td>&nbsp;</td>
                    <td colspan="2"><input type="submit" class="button_user"  value="Add Service"/></td>
                </tr>
            
            </table>
            <% } %>
    
            <% if(Model.Cart.Lines.Count > 0)
                Html.RenderPartial("ViewYourCart", Model); %>
        </div>
    </div>
</div>
    
</asp:Content>
